<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style type="text/css">
.title {
	font-weight: bold;
}
</style>
<title>Comanda noua</title>
</head>
<script type="text/javascript" src="../js/fieldValidator.js"></script>
<body>
	<div>
		<div>
			<c:import url="../fragments/header.jsp" />
		</div>
		<div>
			<div style="float: left;">
				<c:import url="../fragments/right.jsp" />
			</div>
			<div style="float: left">
				<div>
					<form action="<%=request.getContextPath()%>/clientCarSave"
						method="post" id="comandaNoua">
						<table>
							<tbody>
								<tr>
									<td align="center" colspan="2"><span class="title">Client</span></td>
								</tr>
								<tr>
									<td align="right">Nume:</td>
									<td><input type="text" name="nume"
										onblur="validateEmpty(this,'numeError');" size="40" /></td>
									<td><span id="numeError"></span></td>
								</tr>
								<tr>
									<td align="right">Adresa:</td>
									<td><textarea name="adresa" cols="32" rows="3"
											onblur="validateEmpty(this,'adresaError');"></textarea></td>
									<td><span id="adresaError"></span></td>
								</tr>
								<tr>
									<td align="right">Telefon:</td>
									<td><input type="text" name="telefon"
										onkeydown="return IsNumeric(event);"
										onblur="validateTelephone(this,'telefonError');" /></td>
									<td><span id="telefonError"></span></td>
								</tr>
								<tr>
									<td align="center" colspan="2"><span class="title">Masina</span></td>
								</tr>
								<tr>
									<td align="right">Marca/Model:</td>
									<td><input type="text" name="marca" size="40"
										onblur="validateEmpty(this,'marcaError');" /></td>
									<td><span id="marcaError"></span></td>
								</tr>
								<tr>
									<td align="right">Nr inmatriculare:</td>
									<td><input type="text" name="nr"
										onblur="validateEmpty(this,'nrError');" /></td>
									<td><span id="nrError"></span></td>
								</tr>
								<tr>
									<td align="right">Seria caroserie:</td>
									<td><input type="text" name="seria" size="40"
										onblur="validateEmpty(this,'serieError');" /></td>
									<td><span id="serieError"></span></td>
								</tr>
								<tr>
									<td align="right">Motor/Km:</td>
									<td><input type="text" name="motor"
										onblur="validateEmpty(this,'motorError');" /></td>
									<td><span id="motorError"></span></td>
								</tr>
								<tr>
									<td />
									<td align="center">
										<button type="reset">Curata</button> &nbsp;
										<button type="submit"
											onclick="return validateComanda('comandaNoua');">Inainte
											&gt;</button>
									</td>
								</tr>
							</tbody>
						</table>
					</form>
				</div>
			</div>
		</div>
	</div>
</body>
</html>